package kr.co.mustgo.model.dao.qna;

import java.util.List;

import kr.co.mustgo.domain.qna.QnABoard;

public interface QnABoardDAO {

	//board 테이블에 내용을 하나 insert
		public abstract int insertContentForNewCount(QnABoard qnaBoard);

		//board 테이블에 답변글 하나 insert 처리
		public abstract int insertContentForReply(QnABoard qnaBoard);
	
		public abstract int updateContent(QnABoard qnaBoard);
		
		public abstract int updateViewCount(int code);

		public abstract QnABoard selectContentByCode(int code);
		
		public abstract List<QnABoard> selectQnABoardList(int page);
		
		public abstract int selectTotalContent();
		
		public abstract int deleteContentByCode(int code);
		
		public abstract int updateRestep(int refamily, int restep);

		public abstract List<QnABoard> selectQnABoardListCategory(int page, String category);
		
		public abstract int selectCategoryContent(String category);
		
		public abstract List<QnABoard> selectQnABoardSearch(int page, String search, String keyword);
		
		public abstract int selectSearchContent(String search, String keyword);

}

